Component({
    externalClasses: ["mit-class"],
    properties: {isAccordion: {type: Boolean}},
    relations: {"../Accordion-Panel/index": {type: "child"}},
    data: {expanded: !1},
    methods: {
        onItemTap(e) {
            if (this.data.isAccordion) {
                const a = this.getRelationNodes("../Accordion-Panel/index");
                e.data.expanded ? e.setData({expanded: !e.data.expanded}) : (a.forEach((e, a) => {
                    e.setData({expanded: !1})
                }), e.setData({expanded: !e.data.expanded}))
            } else e.setData({expanded: !e.data.expanded})
        }
    },
    ready() {
    }
});